Functions

You have already seen some of the functions in use. There are for basic types of functions that can operate on matricies in Ṫhey are:
Scalar Functions:
These functions operate on scalars, and treat matrices in an element-by-element fashion. Some examples are:


             function1 function2 function2 function4 
             abs 		 exp 		 floor 		 round 

cos sin tan ceil
sqrt real imag conj
isnan int
Vector Functions:
These functions operate on vectors, either row-vectors (1-by-n) or column vectors (m-by-1), in the same fashion. If the argument is a matrix with both dimensions > 1 then the operation is performed in a column-wise fashion. Some examples are:


             function1 function2 function2 function4 
             sum 		 prod 		 mean 		 max 

min fft sort any
When using a vector oriented function, like max(), on a general matrix, it is possible to obtain scalar quantities. For example the maximum value in a matrix can be obtained using max (max (a)). The first call to max() returns a vector of the maximum values from each column, and the second call to max() returns the maximum value in the matrix.
Matrix Functions:
These functions operate on matrices as a single entity. Some examples are:


             function1 function2 function2 function4 
             balance 		 chol 		 det 		 eig 

hess inv lu norm
pinv qr rank rcond
reshape solve svd symm